<!doctype html>
<html>

	<head>
		<meta charset="UTF-8">
		<title></title>
		<script>
//			.代表任意字符
			var reg = /a.b.c/;
			var str = 'aabbcc';
			var re = reg.test(str);
//			console.log(re);
			
			var reg = /1|0/;
			var str = '23894531';
			var re = reg.test(str);
			console.log(re);
		</script>
	</head>

	<body>
		
	</body>

</html>